#include <ddt.h>
#include <unistd.h>

struct dd_image img;

void update() {

}

void draw() {
	dd_buffer_clear();

	dd_image_draw(&img);

	dd_buffer_draw();

	usleep(25000);
}

int main() {

	dd_w = 20;
	dd_h = 10;

	dd_create_context();
	dd_update_func(update);
	dd_draw_func(draw);

	dd_image_load_bmp(&img, "file.bmp");

	dd_loop();
}
